package com.hotel.app.service;

import com.hotel.app.config.OpenFeignConfig;
import com.hotel.user.entity.Food;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * --- 年薪百万 ---
 * ---So easy---
 *
 * @author ZhiHuiJun
 * @motto 学习都是人上人
 * @desc 就是很帅很优秀
 * @CC 每天漂亮、幸福、快乐、自由
 */
@FeignClient(value = "ht-meals-server", configuration = OpenFeignConfig.class)
public interface FoodFeign {
    @GetMapping("/api/foods")
    List<Food> getAllProducts(@RequestParam(value = "category") String category);
}
